import request from '../../common/request.js'

// 获取短信验证码
export function infoGetVerifyCode(data) {
	return request({
		url: '/api/login/getverifycode',
		method: 'POST',
		contentType: 'application/json',
		data: JSON.stringify(data)
	})
}

// 验证码登陆
export function infoVerifyCodeLogin(data) {
	return request({
		url: '/api/login/verifycodelogin',
		method: 'POST',
		contentType: 'application/json',
		data: JSON.stringify(data)
	})
}

// 账号密码登陆
export function infoAccountLogin(data) {
	return request({
		url: '/api/login/accountlogin',
		method: 'POST',
		contentType: 'application/json',
		data: JSON.stringify(data)
	})
}

// 验证token是否失效
export function infoCheckToken(data) {
	return request({
		url: '/api/login/checktoken',
		method: 'POST',
		contentType: 'application/json',
		data: JSON.stringify(data)
	})
}